import request from '@/utils/request'

// 查询模型列表
export function modelList(data) {
    return request({
      url: 'model/list',
      method: 'get',
      params:data
    })
}

// 部署
export function deployProcess(modelId) {
    return request({
      url: 'model/deploy/'+modelId,
      method: 'get'
    })
}

// 删除
export function removeProcess(modelId) {
    return request({
      url: 'model/remove/'+modelId,
      method: 'delete'
    })
}

// 导出model
export function exportProcess(modelId) {
    return request({
      url: 'model/export/'+modelId,
      method: 'get'
    })
}